package com.yidingdui.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yidingdui.domain.dto.UserLoginDTO;
import com.yidingdui.domain.dto.UserRegisterDTO;
import com.yidingdui.domain.entity.User;
import com.yidingdui.domain.vo.Resultdata;
import com.yidingdui.domain.vo.UserVO;
import com.yidingdui.domain.dto.ChangePasswordDTO;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author 虎哥
 * @since 2023-05-05
 */
public interface IUserService extends IService<User> {

    UserVO login(UserLoginDTO loginDTO);

    Resultdata<UserVO> register(UserRegisterDTO registerDTO);

    UserVO getCurrentUserInfo(Long userId);

    void changePassword(Long userId, ChangePasswordDTO dto);

}
